import 'package:flutter/material.dart';

class ChipText extends StatelessWidget {
  final String lable;

  ChipText({Key key, @required this.lable}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DecoratedBox(
      decoration: BoxDecoration(
        color: Theme.of(context).primaryColor,
        border: Border.all(color: Theme.of(context).primaryColor),
        borderRadius: BorderRadius.circular(5),
      ),
      child: Padding(
        padding: EdgeInsets.only(left: 10, right: 10, top: 2, bottom: 2),
        child: Text(lable, style: TextStyle(fontSize: 12)),
      ),
    );
  }
}
